<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Framework by Gaétan Collaud: Référence de la classe AbstractEntity</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&nbsp;associées</span></a></li>
      <li class="current"><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li><a href="hierarchy.html"><span>Hiérarchie&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="functions.html"><span>Champs&nbsp;de&nbsp;donnée</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe AbstractEntity</h1><!-- doxytag: class="AbstractEntity" -->
<p>Classe abstraite servant au entityBean.  
<a href="#_details">Plus de détails...</a></p>
<div class="dynheader">
Graphe d'héritage de AbstractEntity:</div>
<div class="dynsection">
 <div class="center">
  <img src="class_abstract_entity.png" usemap="#AbstractEntity_map" alt=""/>
  <map id="AbstractEntity_map" name="AbstractEntity_map">
<area href="class_user_entity.html" alt="UserEntity" shape="rect" coords="0,56,90,80"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a9d3fa0e6b8ce9e72ce69fb05158af7bd">__construct</a> ($table_name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redéfinit le type de tout les champs.  <a href="#a9d3fa0e6b8ce9e72ce69fb05158af7bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a473241246338cfccc4709ba896749019">insert</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crée la requête d'insertion de l'objet.  <a href="#a473241246338cfccc4709ba896749019"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#ae547880e3ab7571495c79656c3735653">update</a> (array $where=null)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crée la requête de mise à jour.  <a href="#ae547880e3ab7571495c79656c3735653"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#acaf11047c7044940845df2e85b902686">delete</a> (array $where=null)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crée la requête de suppression.  <a href="#acaf11047c7044940845df2e85b902686"></a><br/></td></tr>
<tr><td colspan="2"><h2>Champs de données</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a99c083a2611abba224ce8a0aa7c7885d">TYPE_INT</a> = 1</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Liste des types de données supporté.  <a href="#a99c083a2611abba224ce8a0aa7c7885d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a7b176bd55450d1c25a421b13dd484b4e">TYPE_STRING</a> = 2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#acfebb67f6103bdc64a2fd173df569ce7">TYPE_BOOLEAN</a> = 3</td></tr>
<tr><td colspan="2"><h2>Fonctions membres protégées statiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a7837475ab049f2a79fa069b838fd5160">addField</a> ($name, $type)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ajoute un champ.  <a href="#a7837475ab049f2a79fa069b838fd5160"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a723147abe8609749ce737e9cf7065af7">addPk</a> ($name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ajoute une clé primaire.  <a href="#a723147abe8609749ce737e9cf7065af7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a335eb9d760c7598845609eec2b404fe4">addAutoPK</a> ($name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ajoute une clé primaire auto incrémentée.  <a href="#a335eb9d760c7598845609eec2b404fe4"></a><br/></td></tr>
<tr><td colspan="2"><h2>Fonctions membres privées</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#aceba2d3b0f8849c40ca3fbf51a4664a4">escape</a> ($v, $type)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Echape et ajoute les guillemets au besoin pour une valeur.  <a href="#aceba2d3b0f8849c40ca3fbf51a4664a4"></a><br/></td></tr>
<tr><td colspan="2"><h2>Attributs privés statiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#ab2303c817e3b402b77b7f99627b9c319">$fields</a> = array()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#aac4b875a598158d51d44a2b061265016">$pk</a> = array()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a1012ea3ceaa5ac30c61af85c0b8906bf">$autoIncr</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_abstract_entity.html#a63f4748915d2fdad2f2503705a7dbb59">$table_name</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Description détaillée</h2>
<p>Classe abstraite servant au entityBean. </p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Gaétan Collaud </dd></dl>
<hr/><h2>Documentation des constructeurs et destructeur</h2>
<a class="anchor" id="a9d3fa0e6b8ce9e72ce69fb05158af7bd"></a><!-- doxytag: member="AbstractEntity::__construct" ref="a9d3fa0e6b8ce9e72ce69fb05158af7bd" args="($table_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__construct </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>table_name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redéfinit le type de tout les champs. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$table_name le nom de la table </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Documentation des fonctions membres</h2>
<a class="anchor" id="a335eb9d760c7598845609eec2b404fe4"></a><!-- doxytag: member="AbstractEntity::addAutoPK" ref="a335eb9d760c7598845609eec2b404fe4" args="($name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static addAutoPK </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ajoute une clé primaire auto incrémentée. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$name le nom du champ </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7837475ab049f2a79fa069b838fd5160"></a><!-- doxytag: member="AbstractEntity::addField" ref="a7837475ab049f2a79fa069b838fd5160" args="($name, $type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static addField </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ajoute un champ. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$name Le nom du champ </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>int</em>&nbsp;</td><td>$type Le type du champs (voir les constantes) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a723147abe8609749ce737e9cf7065af7"></a><!-- doxytag: member="AbstractEntity::addPk" ref="a723147abe8609749ce737e9cf7065af7" args="($name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static addPk </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ajoute une clé primaire. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$name le nom du champ </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acaf11047c7044940845df2e85b902686"></a><!-- doxytag: member="AbstractEntity::delete" ref="acaf11047c7044940845df2e85b902686" args="(array $where=null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">delete </td>
          <td>(</td>
          <td class="paramtype">array $&nbsp;</td>
          <td class="paramname"> <em>where</em> = <code>null</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crée la requête de suppression. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>array&lt;String,String&gt;</em>&nbsp;</td><td>$where les conditions à remplir sous forme champs=valeur </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>String la requête SQL </dd></dl>

</div>
</div>
<a class="anchor" id="aceba2d3b0f8849c40ca3fbf51a4664a4"></a><!-- doxytag: member="AbstractEntity::escape" ref="aceba2d3b0f8849c40ca3fbf51a4664a4" args="($v, $type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">escape </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Echape et ajoute les guillemets au besoin pour une valeur. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$v la valeur </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>int</em>&nbsp;</td><td>$type le type (voir constante) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>String le champ échapé </dd></dl>

</div>
</div>
<a class="anchor" id="a473241246338cfccc4709ba896749019"></a><!-- doxytag: member="AbstractEntity::insert" ref="a473241246338cfccc4709ba896749019" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">insert </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crée la requête d'insertion de l'objet. </p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>String la requête SQL </dd></dl>

</div>
</div>
<a class="anchor" id="ae547880e3ab7571495c79656c3735653"></a><!-- doxytag: member="AbstractEntity::update" ref="ae547880e3ab7571495c79656c3735653" args="(array $where=null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update </td>
          <td>(</td>
          <td class="paramtype">array $&nbsp;</td>
          <td class="paramname"> <em>where</em> = <code>null</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crée la requête de mise à jour. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>array&lt;String,String&gt;</em>&nbsp;</td><td>$where les conditions à remplir sous forme champs=valeur </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>String la requête SQL </dd></dl>

</div>
</div>
<hr/><h2>Documentation des champs</h2>
<a class="anchor" id="a1012ea3ceaa5ac30c61af85c0b8906bf"></a><!-- doxytag: member="AbstractEntity::$autoIncr" ref="a1012ea3ceaa5ac30c61af85c0b8906bf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$autoIncr<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab2303c817e3b402b77b7f99627b9c319"></a><!-- doxytag: member="AbstractEntity::$fields" ref="ab2303c817e3b402b77b7f99627b9c319" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$fields = array()<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aac4b875a598158d51d44a2b061265016"></a><!-- doxytag: member="AbstractEntity::$pk" ref="aac4b875a598158d51d44a2b061265016" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$pk = array()<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a63f4748915d2fdad2f2503705a7dbb59"></a><!-- doxytag: member="AbstractEntity::$table_name" ref="a63f4748915d2fdad2f2503705a7dbb59" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$table_name<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acfebb67f6103bdc64a2fd173df569ce7"></a><!-- doxytag: member="AbstractEntity::TYPE_BOOLEAN" ref="acfebb67f6103bdc64a2fd173df569ce7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_abstract_entity.html#acfebb67f6103bdc64a2fd173df569ce7">TYPE_BOOLEAN</a> = 3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a99c083a2611abba224ce8a0aa7c7885d"></a><!-- doxytag: member="AbstractEntity::TYPE_INT" ref="a99c083a2611abba224ce8a0aa7c7885d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_abstract_entity.html#a99c083a2611abba224ce8a0aa7c7885d">TYPE_INT</a> = 1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Liste des types de données supporté. </p>

</div>
</div>
<a class="anchor" id="a7b176bd55450d1c25a421b13dd484b4e"></a><!-- doxytag: member="AbstractEntity::TYPE_STRING" ref="a7b176bd55450d1c25a421b13dd484b4e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_abstract_entity.html#a7b176bd55450d1c25a421b13dd484b4e">TYPE_STRING</a> = 2</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>libs/bdd/<a class="el" href="_abstract_entity_8php.html">AbstractEntity.php</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Généré le Sun May 30 20:39:44 2010 pour Framework by Gaétan Collaud par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
